package com.hdoit.ares.logical.viewmodel.cust;

import java.util.List;

import com.hdoit.ares.logical.cust.model.Customer;

public class CustomerTree extends Customer{
	public CustomerTree(){
		
	}
	private List<CustomerTree> children;

	public List<CustomerTree> getChildren() {
		
		return children;
	}

	public void setChildren(List<CustomerTree> children) {
		
		this.children = children;
	}
	
	
    private String title;
    
    private String icon;
    
	private String depth;
	
	private int totalPerson;
	
	//个人消费非车险
	private double notcar;
	
	//个人消费车险
	private double car;
	
	//个人消费总金额
	private double personalConsumption = 0.0;
	
	//个人
	private double teamConsumption = 0.0;
	
	
	
	public int getTotalPerson() {
		return totalPerson;
	}

	public void setTotalPerson(int totalPerson) {
		this.totalPerson = totalPerson;
	}

	public double getNotcar() {
		return notcar;
	}

	public void setNotcar(double notcar) {
		this.notcar = notcar;
	}

	public double getCar() {
		return car;
	}

	public void setCar(double car) {
		this.car = car;
	}

	public double getPersonalConsumption() {
		return personalConsumption;
	}

	public void setPersonalConsumption(double personalConsumption) {
		this.personalConsumption = personalConsumption;
	}

	public double getTeamConsumption() {
		return teamConsumption;
	}

	public void setTeamConsumption(double teamConsumption) {
		this.teamConsumption = teamConsumption;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	

	@Override
	public void setUsername(String username) {
		super.setUsername(username);
		
		setTitle(username);
	}
	public String getDepth() {
		return depth;
	}

	public void setDepth(String depth) {
		this.depth = depth;
	}
	
	private boolean expanded=false;

	public boolean isExpanded() {
		return expanded;
	}

	public void setExpanded(boolean expanded) {
		this.expanded = expanded;
	}
	
}
